
import {resolve} from "path";

module.exports = {
    title: '限购管理文档',
    description: 'UI组件文档或其他备注',
    lang: 'en-US',
    themeConfig: {
        // 展示搜索框
        algolia: {
            appKey: '',
            indexName: '',
            searchParameters: {
                faeFilters: ['tags:guide,api']
            }
        },
        nav: [{
            text: '首页',
            link: '/',
        },
            {
                text: 'SVN地址',
                link: 'https://github.com/lxKylin/vitepressdemo',
            },
        ],
        // 侧边栏
        sidebar: {
            '/': getDemoSidebar(),
        }
    },
    markdown: {
        // options for markdown-it-anchor
        anchor: { permalink: true },
        // options for markdown-it-toc
        toc: { includeLevel: [1, 2] },
         config: (md) => {
         }
    }
}

function getDemoSidebar() {
    return [
        {
            text: "介绍",
            link: "/introduce/index.html"
        },
        {
            text: "更新日志",
            link: "/log/index.html"
        },
        {
            text: "开发指南",
            children: [
                {
                    text: "快速开始",
                    link: "/guide/index.html"
                },
                {
                    text: "前置技术",
                    link: "/guide/tech.html"
                }
            ]

        },
        {
            text: "布局组件",
        },
        {
            text: "基础组件",
            children: [
            ],
        },
        {
            text: "业务组件",
            children: [{
                text: "公司门店选择器",
                link: "/components/button/"
            },

            ],
        },

    ]
}
